package bufftered;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.Reader;

public class BufferedTest2 {
    public static void main(String[] args) {
        try (
                Reader fr = new FileReader("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima.04out.txt");
             // 创建一个字符输出缓冲流包装原始输出流
             BufferedReader br = new BufferedReader(fr);

        ) {
            // 读取多个内容C
            char[] buffter = new char[3];
            int len;
            while ((len = br.read(buffter)) != -1) {
                System.out.print(new String(buffter, 0, len));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
